package one.stand.model;

import lombok.Data;
import org.springframework.util.StringUtils;

import java.io.Serializable;
import java.util.List;

/**
 * @author Administrator
 */
@Data
public class DynamicModel extends BaseModel implements Serializable {
    private Integer dynamicId;

    private Integer companyId;

    private String companyName;

    private String title;

    private Integer type;

    private String photos;

    private String details;

    private Integer createUserId;

    private String companyLogo;

    private String companyPhone;

    private String companyNotice;

    private String industryId;

    private String recruitPhone;

    private String doThumbsName;

    private Integer doThumbsNum;

    private Integer isThumbs;

    private Integer userId;

    private Integer commentNum;

    private String nickeName;

    private List<CommentModel> commentModelList;

    public String getNickeName() {
        return StringUtils.isEmpty(nickeName)?"":new String(java.util.Base64.getDecoder().decode(nickeName));
    }
}